package cn.quevo.cube.provide.exception;

import cn.quevo.common.enums.EnumsInterface;
import cn.quevo.common.exception.CustomException;
import cn.quevo.cube.provide.exception.response.ColumnExceptionResponse;

/**
 * 数据验证异常
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018/12/11 3:56 PM
 * @Copyright 湘豫（北京）科技有限公司版权所有.All Rights Reserved.
 */
public class DataCheckException extends CustomException {

    public DataCheckException() {
        super(ColumnExceptionResponse.DATA_FORMAT_FAILD);
    }

    public DataCheckException(Integer code, String msg) {
        super(code, msg);
    }

    public DataCheckException(Integer code, String msg, Throwable throwable) {
        super(code, msg, throwable);
    }

    public DataCheckException(EnumsInterface enumsInterface) {
        super(enumsInterface);
    }

    public DataCheckException(ColumnExceptionResponse columnExceptionResponse, String preMsg) {
        super(columnExceptionResponse);
    }

    public DataCheckException(Throwable e, EnumsInterface enumsInterface) {
        super(enumsInterface, e);
    }
}
